package com.moneywelcome.loanservicefacade.forms;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.*;
import java.time.LocalDateTime;

@ApiModel("资质认证参数表")
@Data
public class AuthenticateForm {
    @ApiModelProperty(value = "真实姓名",required = true)
    @NotNull(message = "姓名不能为空")
    private String realName;


    @ApiModelProperty(value = "婚姻状况：1已婚，0未婚",required = true)
    @Max(message = "1已婚，0未婚",value = 1)
    @Min(message = "1已婚，0未婚",value = 0)
    @NotNull
    private Byte marriage;


    @ApiModelProperty(value = "月薪",required = true)
    @NotNull
    private Double salary;
}
